[#--
栏目翻页样式

pageClass: 翻页DIV class
pageStyle: 翻页DIV style
--]
[#assign p=pagination/]
<div[#if pageClass??] class="${cssClass!}"[/#if][#if pageStyle??] style="${cssStyle!}"[/#if] style="margin:auto;width:980px">
共${p.totalCount}条记录 ${p.pageNo}/${p.totalPage}页
[#if p.firstPage]&nbsp;<input type="button" value="首页" disabled="disabled"> <input type="button" value="上一页" disabled="disabled">[#t/]
[#else]&nbsp;<input type="button" value="首页" onclick="check('consultProduct.jspx?pageNo=1')"> [#if p.prePage gt 1]<input type="button" value="上一页" onclick="check('consultProduct.jspx?pageNo=${p.prePage}')">[#else]<input type="button" value="上一页" onclick="check('consultProduct.jspx?pageNo=1')">[/#if][#t/]
[/#if]
[#if p.lastPage]&nbsp;<input type="button" value="下一页" disabled="disabled"> <input type="button" value="尾页" disabled="disabled">
[#else]&nbsp;<input type="button" value="下一页" onclick="check('consultProduct.jspx?pageNo=${p.nextPage}')">

<input type="button" value="尾页" onclick="check('consultProduct.jspx?pageNo=${p.totalPage}')">
[/#if]
&nbsp;
转到第<input type="text" id="_goPs" style="width:50px" onfocus="this.select();"/>页
	<input id="_goPage" type="button" value=" 转  " onclick="check('consultProduct.jspx?pageNo=k');" [#if p.totalPage==1] disabled="disabled"[/#if]/>
</div>

<script type="text/javascript">
function check(pageNo) {
	var k=$('#_goPs').val();
	if(k>${p.totalPage}){
          k=${p.totalPage};
		}
	if(pageNo=='consultProduct.jspx?pageNo=k'){
           pageNo='consultProduct.jspx?pageNo='+k;
		}
	try{
		var forms=getTableForm();
		forms.action=null;
		forms.action=pageNo;
		forms.submit();
		
	} catch(e) {
		alert('_gotoPage(pageNo)方法出错');
	}
}
</script>


